import { outputFileSync } from "fs-extra";
import { emptyDirSync } from "fs-extra";
import { babel } from "@rollup/plugin-babel";
import replace from "@rollup/plugin-replace";
import resolve from "@rollup/plugin-node-resolve";
export default [
    {
        external: [],
        input: "./src/s.ts",
        output: [
            {
                dir: "./dist/",
                format: "es",
                paths: {},
            },
            {
                dir: "./dist/umd",
                format: "umd",
                name: "SystemJS",
            },
        ],
        plugins: [
            replace({
                "process.env.SYSTEM_PRODUCTION": "false",
                "process.env.SYSTEM_BROWSER": "true",
            }),
            resolve({
                extensions: [".ts"],
            }),
            babel({
                presets: [["@babel/preset-typescript"]],
                configFile: true,
                extensions: [".ts"],
            }),
        ],
    },
];
